<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:rich="http://richfaces.org/rich">
    <ui:composition >
        <table >
            <tr>
                <td colspan="2">
                 请输入注册信息
                </td>
            </tr>
            <tr>
                <td >
                  校友ID：
                </td>
                <td>
                    <h:inputText  id="userid"  value="#{registerMbean.userMain.USER_ID}"/>
                </td>
            </tr>
            <tr>
                <td>
                   密码：
                </td>
                <td>
                    <h:inputSecret id="password" value="#{registerMbean.userMain.PASSWORD}" />
                </td>
            </tr>
            <tr>
                <td>
                   请再次输入密码：
                </td>
                <td>
                    <h:inputSecret id="repassword"    />
                </td>
            </tr>
            <tr>
                <td>
                  真实姓名：
                </td>
                <td>
                    <h:inputText id="name" value="#{registerMbean.userMain.NAME}"   />
                </td>
            </tr>
            <tr>
                <td>
                  毕业年级：
                </td>
                <td>
                    <h:selectOneMenu id="graduateyear" value="#{registerMbean.userMain.GRADUATE_YEAR}"   >
                        <f:selectItems value="#{CommonMbean.years}"/>
                    </h:selectOneMenu>
                </td>
            </tr>
            <tr>
                <td>
                    专业:
                </td>
                <td>
                    <h:inputText id="major" value="#{registerMbean.userMain.MAJOR}"   />
                </td>
            </tr>
            <tr>
                <td>
                 所在区：
                </td>
                <td>
                    <h:inputText id="szdistrict" value="#{registerMbean.userMain.SZ_DISTRICT}"   />
                </td>
            </tr>
            <tr>
                <td>
                  验证码：
                </td>
                <td>
                    <h:inputText value="#{registerMbean.vCode}" />
                </td>
            </tr>
            <tr>
                <td>

                </td>
                <td colspan="2">
                    <rich:paint2D id="painter" width="#{registerMbean.vc.width}" height="#{registerMbean.vc.height}"
                                  data="#{registerMbean.vc}" format="png" paint="#{registerMbean.paintVerifyCode}" />
                    <a4j:commandLink action="#{registerMbean.newVCodeActon}" immediate="true" reRender="painter" value="刷新验证码"/>
                </td>
            </tr>
         </table>
        <div>
            <a4j:commandButton  action="next" value="下一步"/>
        </div>
    </ui:composition>
</html>